<section class="ui-amp-container">
  <header>
    <h2><?php echo __('Users') ?>
      <nav><?php echo $actions->buildIndexLinks() ?></nav></h2>
  </header>

  <?php
  if (!empty($users)) {
    echo $this->AmpIndex->table( 
      $users, 
      array('id', 'username', 'actions'),
      array('id'=>array(__('Id'), 'user.id', array('class'=>'min')), 'username'=>array(__('Username'), 'user.username'), 'actions'=>__('Actions')),
      array('td'=>array(
        'id'=>array('class'=>'center'), 
        'username'=>array('class'=>'center'), 
        'actions'=>array('class'=>'center'))
      ), 
      $actions
    );
  } else {
    echo "<p>".__('Zero users found.')."</p>";
  }
  ?>
</section>